import {request} from "@/network/request-config";

// 分页获取全部通知接口
export function getNoticesByPageAPI(data){
    return request({
        url:"/hems/notice/querybypage",
        method:"post",
        data
    }).then(res=>{
        return res
    })
}

// 发送邮件
export function sendEmailAPI(data){
    return request({
        url:"/hems/notice/send",
        method:"post",
        data
    }).then(res=>{
        return res
    })
}
// 根据邮件id重新发送邮件
export function resendEmailAPI(data){
    return request({
        url:"/hems/notice/send/again/"+data,
        method:"post",
        data
    }).then(res=>{
        return res
    })
}
